<?php

// All will be OK as the default value is used.

wp_title_rss( '&#8211;' ); // 1st.
wp_get_sidebars_widgets( true ); // 1st.
wp_new_user_notification( '', null, '' ); // 2nd.
the_attachment_link( '', false, false, false ); // 3rd.
update_blog_option( '', '', '', null ); // 4th.
wp_install( '', '', '', '', '' ); // 5th.
get_category_parents( '', '', '', '', array() ); // 5th.
get_category_parents( '', '', '', '', [] ); // 5th.

// Method names within a class should be fine.

Theme_Object::wp_title_rss( 'home' ); // Ok.
$this->wp_title_rss( 'siteurl' ); // Ok.
$theme_object->wp_title_rss( 'text_direction' ); // Ok.

// All will give an Error even though they have a dynamic variable.

wp_new_user_notification( '', $variable );
wp_new_user_notification( '', function_name() );
wp_new_user_notification( '', $this->method_name() );

/*
 * Test support for named parameters.
 */
// OK: Parameter is not passed.
wp_install( blog_title: '', user_name: '', user_email: '', is_public: '' );
// OK: Another (optional) parameter is passed as the 5th param.
wp_install( blog_title: '', user_name: '', user_email: '', is_public: '', language: '' );
// OK: Parameter is passed with correct default, mixed positional and named params, unconventional order.
wp_install( '', '', deprecated: '', user_email: '', is_public: '' );
// OK: Parameter is passed with correct default, all named params, unconventional order.
wp_install( user_name: '', deprecated: '', user_email: '', blog_title: '', is_public: '' );
// Error: Parameter is passed with incorrect default, unconventional order.
wp_install( is_public: '', user_name: '', user_email: '', deprecated: 'should be empty', blog_title: '' );

// All will give an ERROR. The functions are ordered alphabetically.

_future_post_hook( 10, $post );
_load_remote_block_patterns( $value );
_wp_post_revision_fields( $foo, 'deprecated' );
add_option( '', '', [] );
add_option( '', '', 1.23 );
add_option( '', '', 10 );
add_option( '', '', false );
add_option( '', '', 'deprecated' );
comments_link( 'deprecated', 'deprecated' );
convert_chars( '', 'deprecated' );
delete_plugins( $foo, 'deprecated' );
discover_pingback_server_uri( '', 'deprecated' );
get_blog_list( $foo, $bar, 'deprecated' );
get_category_parents( '', '', '', '', array( 'deprecated') );
get_delete_post_link( '', 'deprecated' );
get_last_updated( 'deprecated' );
get_site_option( $foo, $bar, 'deprecated' );
get_terms( $foo, 'deprecated' );
get_the_author( 'deprecated' );
get_user_option( '', '', 'deprecated' );
get_wp_title_rss( 'deprecated' );
iframe_header( $foo, 'deprecated' );
install_search_form( 'deprecated' );
is_email( '', 'deprecated' );
is_email( '', 'false' ); // False as a string not bool.
load_plugin_textdomain( '', 'deprecated' );
newblog_notify_siteadmin( $foo, 'deprecated' );
permalink_single_rss( 'deprecated' );
redirect_this_site( 'deprecated' );
register_meta( '', '', '', 'deprecated' );
safecss_filter_attr( '', 'deprecated' );
switch_to_blog( $foo, 'deprecated' );
term_description( $foo, 'deprecated' );
the_attachment_link( '', '', 'deprecated' );
the_author( 'deprecated', 'deprecated' );
the_author_posts_link( 'deprecated' );
trackback_rdf( 'deprecated' );
trackback_url( 'deprecated' );
unregister_setting( '', '', 'deprecated' );
update_blog_option( '', '', '', 'deprecated' );
update_blog_status( '', '', '', 'deprecated' );
update_posts_count( 'deprecated' );
update_user_status( '', '', '', 'deprecated' );
wp_count_terms( $foo, 'deprecated' );
wp_create_thumbnail( $foo, $bar, 'deprecated' );
wp_get_http_headers( '', 'deprecated' );
wp_get_sidebars_widgets( 'deprecated' );
wp_install( '', '', '', '', 'deprecated', 'password', 'language' );
wp_login( $foo, $bar, 'deprecated' );
wp_new_user_notification( '', 'deprecated' );
wp_notify_postauthor( '', 'deprecated' );
wp_notify_postauthor( '', 'null' ); // Null as a string not null.
wp_title_rss( 'deprecated' );
wp_upload_bits( '', 'deprecated' );
xfn_check( '', '', 'deprecated' );
global_terms( $foo, 'deprecated' );
inject_ignored_hooked_blocks_metadata_attributes('', 'deprecated');

// All will give an WARNING as they have been deprecated after WP 6.6.
wp_render_elements_support_styles('deprecated');
_wp_can_use_pcre_u('deprecated');
